package com.ease.platform.access.service;

import java.io.Serializable;
import java.util.List;

import com.ease.actionscript.Remoting;
import com.ease.common.vo.Ordering;
import com.ease.common.vo.Pagination;
import com.ease.model.criteria.CriteriaParameter;
import com.ease.platform.authorization.service.AuthorizationService;

/**
 * 
 * @author nathanleewei
 * 
 */
public interface AbstractParameterizedBeanJdbcTemplateAccessService<T extends Serializable> extends AuthorizationService {

	@Remoting(false)
	// <C extends T & CriteriaParameter>
	List<T> find(CriteriaParameter criteriaParameter);

	@Remoting(false)
	List<T> findAll();

	List<T> findAll(Ordering ordering);

	Pagination<T> findPagination(CriteriaParameter criteriaParameter, Pagination<T> pagination);

}
